home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / nodee1.arc / SOURCE.ARC / NODDLGS.CPP < prev    next >
Text File  |  1991-09-01  |  771b  |  52 lines

  1. /*
  2. NODDLGS.CPP
  3.  
  4. The dialog boxes for NODEE.CPP
  5.  
  6. Only the member function code is in this file.  The
  7. header file contains the class definition.
  8.  
  9. */
  10.  
  11.     #ifndef __WINDOWS_H
  12.         #include <Windows.h>
  13.     #endif
  14.  
  15.     #ifndef __String_H
  16.         #include <String.h>
  17.     #endif
  18.  
  19.     #ifndef __NODDLGS_H
  20.         #include "NodDlgs.h"
  21.     #endif
  22.  
  23.  
  24.  
  25.  
  26.     LPSTR AboutBox::getDialogName()
  27.     {
  28.         return "AboutBox";
  29.     }
  30.  
  31.     BOOL AboutBox::dispatch( HWND hDlg, WORD msg, WORD wParam, LONG lParam )
  32.     {
  33.         switch( msg )
  34.         {
  35.             case WM_INITDIALOG:
  36.                 return TRUE;
  37.  
  38.             case WM_COMMAND:
  39.                 if( wParam == IDOK || wParam == IDCANCEL )
  40.                 {
  41.                     EndDialog( hDlg, TRUE );
  42.                     return TRUE;
  43.                 }
  44.  
  45.             default:
  46.                 return ModalDialog::dispatch( hDlg, msg, wParam, lParam );
  47.  
  48.         }
  49.     }
  50.  
  51.  
  52.